package com.rerun.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rerun.common.util.JsonDateFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

/**
 * The type Collection resume.
 */
@TableName("collection_resume")
public class CollectionResume extends Model<CollectionResume> {

    private static final long serialVersionUID = -1076120339327626520L;
    @TableId(type = IdType.UUID)
    private String collectId;
    private String memberId;
    private String parkId;
    @JsonSerialize(using=JsonDateFormat.class)
    private Date createTime;
    @TableField(exist = false)
    private Set<YoyoPark> yoyoParks;

    public String getCollectId() {
		return collectId;
	}

	public void setCollectId(String collectId) {
		this.collectId = collectId;
	}

	/**
     * Gets member id.
     *
     * @return the member id
     */
    public String getMemberId() {
        return memberId;
    }

    /**
     * Sets member id.
     *
     * @param memberId the member id
     */
    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    

    public String getParkId() {
		return parkId;
	}

	public void setParkId(String parkId) {
		this.parkId = parkId;
	}

	/**
     * Gets create time.
     *
     * @return the create time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * Sets create time.
     *
     * @param createTime the create time
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Set<YoyoPark> getYoyoParks() {
        return yoyoParks;
    }

    public void setYoyoParks(Set<YoyoPark> yoyoParks) {
        this.yoyoParks = yoyoParks;
    }

    @Override
    public String toString() {
        return "{" +
                "collectId:" + collectId +
                ", memberId:" + memberId +
                ", parkId:" + parkId +
                ", createTime:" + createTime +
                ", yoyoParks:" + yoyoParks +
                '}';
    }

    @Override
	protected Serializable pkVal() {
		return collectId;
	}

}
